testsuite/css: Change the active RadioButton
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 5 Apr 2019 00:39:34 +0000 (01:39 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Fri, 5 Apr 2019 00:42:37 +0000 (01:42 +0100)
The `buttons` test for CSS nodes sets the second RadioButton as the
active one, whereas the first RadioButton is not set as active.
Nevertheless, the reference output says that the first radio button
should match the `:checked` selector, whereas the second radio button
should not.

The fact that the test currently passes is a mystery.

testsuite/css/nodes/buttons.ui

index 60e429dd2dd8b1df2520bc24fa8c4c4cb81fc6fc..f9343c67250986befc9dcf564a9409313a32c121 100644 (file)
@@ -31,6 +31,7 @@
           <object class="GtkRadioButton" id="button3">
             <property name="label" translatable="yes">Hello World!</property>
             <property name="can_focus">1</property>
+            <property name="active">1</property>
             <property name="receives_default">1</property>
             <layout>
               <property name="left_attach">2</property>
@@ -41,7 +42,6 @@
         <child>
           <object class="GtkRadioButton" id="button4">
             <property name="label" translatable="yes">Hello World!</property>
-            <property name="active">1</property>
             <property name="group">button3</property>
             <property name="can_focus">1</property>
             <property name="receives_default">1</property>